package cn.wyd.shield.entity;

import java.io.Serializable;
import java.util.List;

public class AuthRole implements Serializable{
	
	private Integer id;
	private String name;
	private String postscript;

    private List<AuthRolePower>	authRolePowers;

    private List<AuthUserGroup>	authTbUserGroups;

    private List<AuthUser>	authTbUsers;


	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getPostscript() {
		return postscript;
	}

	public void setPostscript(String postscript) {
		this.postscript = postscript;
	}

	public List<AuthRolePower> getAuthRolePowers() {
		return authRolePowers;
	}

	public void setAuthRolePowers(List<AuthRolePower> authRolePowers) {
		this.authRolePowers = authRolePowers;
	}

	public List<AuthUserGroup> getAuthTbUserGroups() {
		return authTbUserGroups;
	}

	public void setAuthTbUserGroups(List<AuthUserGroup> authTbUserGroups) {
		this.authTbUserGroups = authTbUserGroups;
	}

	public List<AuthUser> getAuthTbUsers() {
		return authTbUsers;
	}

	public void setAuthTbUsers(List<AuthUser> authTbUsers) {
		this.authTbUsers = authTbUsers;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("AuthRole{");
		sb.append("id=").append(id);
		sb.append(", name='").append(name).append('\'');
		sb.append(", postscript='").append(postscript).append('\'');
		sb.append(", authRolePowers=").append(authRolePowers);
		sb.append(", authTbUserGroups=").append(authTbUserGroups);
		sb.append(", authTbUsers=").append(authTbUsers);
		sb.append('}');
		return sb.toString();
	}
}
